package edu.cuit.canary.selection;

import java.util.Scanner;

public class ChineseZodiac {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入年份:");
        int year = input.nextInt();
        input.close();

        String zodiac = switch (year % 12){
            case 0 -> "monkey";
            case 1 -> "raster";
            case 2 -> "dog";
            case 3 -> "peppa";
            case 4 -> "mouse";
            case 5 -> { //多条语句
                System.out.println("牛");
                yield "ox";
            }
            case 6 -> "tiger";
            case 7 -> "rabbit";
            case 8 -> "dragon";
            case 9 -> "snake";
            case 10 -> "horse";
            case 11 -> "sheep";
            default -> "非法年份";
        };

        System.out.println("year:" + year + ",zodiac:" + zodiac);
    }
}
